# /**
# * Copyright (c) 2022 Beijing Jiaotong University
# * photlab is licensed under [Open Source License].
# * You can use this software according to the terms and conditions of the [Open Source License].
# *
# * You may obtain a copy of [Open Source License] at: [https://open.source.license/]
# *
# * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# *
# * See the [Open Source License] for more details.
# */
# /**
# * Author: Shihao Xie
# * Created: Aug. 31, 2022
# * Supported by: National Key Research and Development Program of China
# */

# thrift --gen py ./interface/project_data_type.thrift

namespace py phot_server.rpc.project_data_type
namespace js photlab.project_data_type

include "file_data_type.thrift"

enum ProjectType{
    Optical_fiber_communication_simulation = 0,
    Optical_device_simulation = 1
}

struct ProjectConfig{
    1:required string projectId,
    2:required string projectName,
    3:required string createTime,
    4:required string projectDirectory,
    5:required ProjectType projectType,
    6:required string mainFileName,
    7:optional string description,
    8:optional list<file_data_type.PhotFile> files,
    9:optional string windowConfig,
}